//
//  MutableWeakArray.h
//  MyProject
//
//  Created by danal on 13-5-8.
//  Copyright (c) 2013年 danal. All rights reserved.
//

#import <Foundation/Foundation.h>
#include <vector>

@interface MutableWeakArray : NSObject
{
    std::vector<id> vec;
}

- (int)count;

- (void)addObject:(id)object;
- (void)addObjectsFromArray:(NSArray *)otherArray;

- (id)objectAtIndex:(int)index;

- (void)removeObjectAtIndex:(int)index;
- (void)removeLastObject;
- (void)removeAllObjects;
- (void)removeObjectsInRange:(NSRange)range;

- (void)replaceObjectAtIndex:(int)index withObject:(id)object;

- (void)insertObject:(id)object atIndex:(NSUInteger)index;

@end
